import bus from "@/bus";
import { renderButton } from '@/util';
import { Poptip, Icon } from 'view-design';
let data = {
  status: 'pass',
  totalItem: 1,
  pageSize: window.$pageSize,
  currentPage: 1,
  form: {
  },
  columns: [{
    title: '盘存编号',
    key: 'sn',
    align: 'left',
    minWidth: 200
  }, {
    title: '盘存时间',
    key: 'createDate',
    align: 'left',
    minWidth: 200
  }, {
    title: '经销商',
    key: 'distributorName',
    align: 'left',
    minWidth: 200,
    tooltip: true
  }, {
    title: '规格种类',
    key: 'totalTypeQuantity',
    align: 'right',
    minWidth: 100
  }, {
    title: '清零总数量',
    key: 'totalQuantity',
    align: 'right',
    minWidth: 150
  }, {
    title: '操作人员',
    key: 'operatorName',
    align: 'left',
    minWidth: 120
  }, {
    title: '返利扣减(元)',
    key: 'totalRebateAmount',
    align: 'right',
    minWidth: 150
  },{
    title: '扣减月份',
    key: 'rebateMonth',
    align: 'right',
    minWidth: 150,
    renderHeader: (h, params) => {
      return <Poptip trigger="hover" transfer width="120" word-wrap content="返利扣减的月份">
                  <span>扣减月份</span>
                  <Icon type="ios-help-circle" />
              </Poptip>
  }
  }, {
    title: '操作',
    align: 'right',
    minWidth: 100,
    render: (h, params) => {
      return (
        <div>
          { renderButton(h, { text: '详情', type: 'primary' }, ()=>{ bus.$emit("detailInfo", params.row)})}
        </div>
      )
    }
  }],
  data: [{}]
}
export default data;
